package de.fancyCatEntertaiment;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class HelpDrivescreenActivity extends Activity {
	
	TextView header;
	TextView description;
	Button next;
	Button back;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		//Registriert die ACtivity in der Registry
		ActivityRegistry.registerActivity(this);
		setContentView(R.layout.helponepic);

		//Initialisierung des UI
		initUI();
	}
	
	//Initialisiert das UI
	public void initUI()
	{
		header = (TextView)findViewById(R.id.header);
		header.setText(R.string.header_help_drivescreen);
		
		description = (TextView)findViewById(R.id.description);
		description.setText(R.string.descr_help_drivescreen);
		
		
		back = (Button)findViewById(R.id.back);
		next = (Button)findViewById(R.id.next);
		
		next.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				
				Intent nextStepHelp = new Intent(HelpDrivescreenActivity.this,HelpDrivescreenDetailsActivity.class);
				startActivity(nextStepHelp);
				
			}
		});
		
		back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});

		Button quit = (Button)findViewById(R.id.quit);
		quit.setText(R.string.button_quit);

		quit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent backtomain = new Intent(HelpDrivescreenActivity.this,MainMenueActivity.class);
				startActivity(backtomain);
				
			}
		});

	}

}